package InheritanceAndPolymorphism.demo07;

public class Cat extends Pet{
    public Cat(String name) {
        super(name);
    }

    @Override
    public void follow() {
        System.out.println(name + " 像猫一样轻盈地跟随");
    }
}
